package HomeWork.AdvancedStream;

import java.io.Serializable;
import java.util.Arrays;

public class Cat implements Serializable {
    int age;
    String name;
    String master;
    String[] otherInfo;

    public Cat() {
    }

    public Cat(int age, String name, String master, String[] otherInfo) {
        this.age = age;
        this.name = name;
        this.master = master;
        this.otherInfo = otherInfo;
    }

    @Override
    public String toString() {
        return "Cat{" +
                "age=" + age +
                ", name='" + name + '\'' +
                ", master='" + master + '\'' +
                ", otherInfo=" + Arrays.toString(otherInfo) +
                '}';
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMaster() {
        return master;
    }

    public void setMaster(String master) {
        this.master = master;
    }

    public String[] getOtherInfo() {
        return otherInfo;
    }

    public void setOtherInfo(String[] otherInfo) {
        this.otherInfo = otherInfo;
    }
}
